package com.zbkj.crmeb.finance.request;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;

import com.common.PageParamRequest;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class GetListRequest extends PageParamRequest implements Serializable {

    @ApiModelProperty(value = "商户id")
    private Integer merId;
    
    @ApiModelProperty(value = "商户ids")
    private List<Integer> merIds;

    @ApiModelProperty(value = "渠道名称")
    private String channelName;

    @ApiModelProperty(value = "流水编号")
    private String orderId;

    @ApiModelProperty(value = "-1 未通过 0 审核中 1 已提现")
    private Integer status;

    @ApiModelProperty(value = "交易类型 1 充值 2 提现")
    @NotNull(message = "交易类型不能为空")
    private Integer tradeType;

    @ApiModelProperty(value = "充值类型 offline线下充值 ,routine线上充值 ")
    private String rechargeType;

//    @ApiModelProperty(value = "充值来源 0: 前端充值 1: 后台充值")
//    private Integer type;

    @ApiModelProperty(value = "开始时间")
//    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
//    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}